Move revert-buffer-restore-functions use from buff-menu.el to outline.el
authorJuri Linkov <juri@linkov.net>
Mon, 3 Jun 2024 18:13:38 +0000 (21:13 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 3 Jun 2024 18:15:33 +0000 (21:15 +0300)
commitfe79a6ff507670a2ab79fca060c2727fcd0a4dae
tree3630d0df71e02f56e8f4f6c7a801d9c58c7eb615
parent642bf58d4fbff4493b629837564b7e5c77c7615c
Move revert-buffer-restore-functions use from buff-menu.el to outline.el

* lisp/buff-menu.el (Buffer-menu-mode): Remove
revert-buffer-restore-functions with handling of
outline-minor-mode and move it to outline-minor-mode.

* lisp/outline.el (outline-minor-mode):
Add revert-buffer-restore-functions to call
outline-minor-mode-highlight-buffer after reverting the buffer
with outline-minor-mode and outline-minor-mode-highlight
where font-lock can't be used to update highlighting.
lisp/buff-menu.el
lisp/outline.el